<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      yasm-1.3.0
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;13.&nbsp;Programming
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="valgrind.html" title=
          "Valgrind-3.15.0">Prev</a>
          <p>
            Valgrind-3.15.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="other-tools.html" title=
          "Other Programming Tools">Next</a>
          <p>
            Other Programming Tools
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="prog.html" title=
          "Chapter&nbsp;13.&nbsp;Programming">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="yasm" name="yasm"></a>yasm-1.3.0
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to yasm
        </h2>
        <p>
          <span class="application">Yasm</span> is a complete rewrite of the
          <a class="xref" href="nasm.html" title=
          "NASM-2.14.02">NASM-2.14.02</a> assembler. It supports the x86 and
          AMD64 instruction sets, accepts NASM and GAS assembler syntaxes and
          outputs binary, ELF32 and ELF64 object formats.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz">
                http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: fc9e586751ff789b34b1f21d572d96af
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.5 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 27 MB (additional 12 MB for
                the tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.1 SBU (additional 0.1 SBU for the
                tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          yasm Dependencies
        </h3>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="python2.html" title=
          "Python-2.7.17">Python-2.7.17</a> and <a class="ulink" href=
          "http://cython.org/">Cython</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/yasm">http://wiki.linuxfromscratch.org/blfs/wiki/yasm</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of yasm
        </h2>
        <p>
          Install <span class="application">yasm</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">sed -i 's#) ytasm.*#)#' Makefile.in &amp;&amp;

./configure --prefix=/usr &amp;&amp;
make</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>sed -i 's#) ytasm.*#)#'
          Makefile.in</strong></span>: This sed prevents it compiling 2
          programs (vsyasm and ytasm) that are only of use on Microsoft
          Windows.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program:</strong>
              <span class="segbody">yasm</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libyasm.a</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">/usr/include/libyasm</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="yasm-prog" name="yasm-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>yasm</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a portable, retargetable assembler that supports the
                    x86 and AMD64 instruction sets, accepts NASM and GAS
                    assembler syntaxes and outputs binaries in ELF32 and
                    ELF64 object formats.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libyasm" name="libyasm"></a><span class=
                    "term"><code class="filename">libyasm.a</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    provides all of the core functionality of <span class=
                    "command"><strong>yasm</strong></span>, for manipulating
                    machine instructions and object file constructs.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 15:15:05 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="valgrind.html" title=
          "Valgrind-3.15.0">Prev</a>
          <p>
            Valgrind-3.15.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="other-tools.html" title=
          "Other Programming Tools">Next</a>
          <p>
            Other Programming Tools
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="prog.html" title=
          "Chapter&nbsp;13.&nbsp;Programming">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
